// 图像模糊处理实例
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main(int argc, char** argv) {
  if (argc != 2) {
    cout << "arg1 is image files path" << endl;
    return -1;
  }

  Mat img_src = imread(argv[1]);
  if (img_src.empty()) {
    cout << "image path is null" << endl;
    return -1;
  }

  imshow("origin image: ", img_src);

  // average filter  blur process
  Mat img_dst;
  blur(img_src, img_dst, Size(7, 7));
  
  imshow("blur image: ", img_dst);

  waitKey(0);

}